/*
 *  StraightLine.h
 *  SoundController0002
 *
 *  Created by jiro on 10/06/28.
 *  Copyright 2010 jiro music. All rights reserved.
 *
 */

#pragma once

#include "Line.h"

namespace sc 
{

	class StraightLine : public Line
	{
	private:
	
		double slope;
		
		double intercept;
		
	public:

		StraightLine( double startX, double startY, double endX, double endY );

		virtual ~StraightLine();

		double GetY( double paramX ) const;
		
		bool operator < ( const StraightLine& rhs ) const;

		bool operator > ( const StraightLine& rhs ) const;

		bool operator <= ( const StraightLine& rhs ) const;

		bool operator >= ( const StraightLine& rhs ) const;
		
		double GetSlope() const;
		
		double GetIntercept() const;

		std::string ToString() const;
		
	};

}